package cn.tedu.springbootdemo;

import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.stereotype.Component;

//@Component
/**
 * @ConditionalOnClass
 * 条件注解，基于当前指定的class存在于类路径中
 */
//@ConditionalOnClass(User.class)
public class GamePhone implements Phone{

    public GamePhone(){
        System.out.println("GamePhone的构造方法被调用了");
    }

}
